<?php
Doo::loadCore('db/DooModel');

class SbUserBase extends DooModel{

    /**
     * @var int Max length is 11.
     */
    public $USR_ID;

    /**
     * @var varchar Max length is 32.
     */
    public $USR_NAME;

    /**
     * @var varchar Max length is 32.
     */
    public $USR_PASSWD;

    public $_table = 'sb_user';
    public $_primarykey = 'USR_ID';
    public $_fields = array('USR_ID','USR_NAME','USR_PASSWD');

    public function getVRules() {
        return array(
                'USR_ID' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'optional' ),
                ),

                'USR_NAME' => array(
                        array( 'maxlength', 32 ),
                        array( 'notnull' ),
                ),

                'USR_PASSWD' => array(
                        array( 'maxlength', 32 ),
                        array( 'notnull' ),
                )
            );
    }

}